import { Component } from '@angular/core';
//1  导入 封装好的 request 文件
import { list } from '../request';
@Component({
  selector: 'app-page-evaluation',
  templateUrl: './page-evaluation.component.html',
  styleUrls: ['./page-evaluation.component.scss']
})
export class PageEvaluationComponent {
  myList: any
  choiceMap: Array<any> = []
  ngOnInit():void{
      this.showSort("item.ID")
    }
  async showSort(item:any){

    // console.log(this.choiceMap)

    // 2 调用函数
    list("eva").then(res => {
      // console.log(res)
      this.myList = res

    }).catch(e => {

      console.log("error")

    })

  }
}
